﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OFB.DAL;
using OFB.Domain;
using OFB.BLL.ViewModel;

namespace OFB.BLL.Context
{
    public class TopicContext : CommonContext
    {
        public DataQueryDAL<Subject> Subject { get; set; }
        public DataQueryDAL<Topic> Topic { get; set; }
        public DataQueryDAL<TopicSubjectViewModel> TopicSubject { get; set; }
        public DataQueryDAL<TopicListViewModel> TopicListViewModel { get; set; }

        public TopicContext()
        {
            Topic = new DataQueryDAL<Topic>(this.connectionStringName);
            TopicSubject = new DataQueryDAL<TopicSubjectViewModel>(this.connectionStringName);
            Subject = new DataQueryDAL<Subject>(this.connectionStringName);
            TopicListViewModel = new DataQueryDAL<TopicListViewModel>(this.connectionStringName);
        }
    }
}
